﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace ChatServer.DataBaseModel
{
    public class UserRoles
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int MapId { get; set; }
        public Guid UserId { get; set; }
        public int RoleId { get; set; }
        public DateTime DateGranted { get; set; }
        public DateTime? DateRevoked { get; set; }
        public Guid? GrantedBy { get; set; }


        public virtual Users User { get; set; }
        public virtual Roles Role { get; set; }
    }
}